CC=gcc
CFLAGS=-Wall

all: myShell

myShell: shell.o history.o parse.o execute.o
	$(CC) shell.o history.o parse.o execute.o -o myShell

shell.o: shell.c
	$(CC) -c $(CFLAGS) shell.c

history.o: history.c
	$(CC) -c $(CFLAGS) history.c

parse.o: parse.c
	$(CC) -c $(CFLAGS) parse.c

execute.o: execute.c
	$(CC) -c $(CFLAGS) execute.c

clean:
	rm -rf *o myShell
